package com.tonghaibo.config;

import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;
import org.springframework.context.annotation.PropertySource;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * @author jitwxs
 * @date 2025年04月27日 20:15
 */
@Configuration
@ComponentScan({"com.tonghaibo.dao","com.tonghaibo.service","com.tonghaibo.expection"})
@Import({JdbcConfig.class,MybatisConfig.class})
@PropertySource("classpath:jdbc.properties")
//开启事务功能@EnableTransactionManagement
@EnableTransactionManagement
public class SpringConfig {
}
